package ui.list 
{
	import com.GCShip;
	import data.GCShipData;
	import flash.display.Bitmap;
	import flash.display.DisplayObject;
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.text.TextField;
	/**
	 * ...
	 * @author Jason Won
	 */
	public class GCShipListUI extends GCListUI
	{
		private var _reference:GCShip;
		private var _uiWidth:int = 200;
		private var _uiHeight:int = 50;
		
		public function GCShipListUI(reference:GCShip) 
		{
			super(_uiWidth, _uiHeight);
			this._reference = reference;
			
			var type:String = GCShipData.getImageFromId(reference.getType());
			
			var img:DisplayObject = GCResources.getResource(type);
			img.width = 50;
			img.height = 50;
			addChild(img);
			
			var name:TextField = new TextField();
			name.text = type;
			name.x = 60;
			name.selectable = false;
			addChild(name);
		}
		
		//----------------------------------------------------------------------
		//	GET FUNCTIONS
		//----------------------------------------------------------------------	
		
		public function get reference():GCShip
		{
			return _reference;
		}		
		
	}
}